package io.terminus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.terminus.entity.activeRecord.Employee;
import org.springframework.stereotype.Repository;

/**
 * DAO层 Mybatis Plus 高阶 Mapper
 *
 * @author Melo
 */
@Repository
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 通过自定义SQL注入器实现自定义deleteAll方法，不通过xml的SQL或者注解实现
     * @return 删除条数
     */
    int deleteAll();
}
